* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.chart-container{
  width:100%;
}

.stock-container {
  flex :0 0 88%;
  max-width: 1000px;
  margin: 0 auto;
  background: #000;
  border-radius: 0px;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.chart-tabs {
  display: flex;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  padding: 0 20px;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #ccc;
  transition: all 0.3s;
  position: relative;
}

.tab-btn:hover {
  background: rgba(30, 109, 232, 0.2);
  color: #fff;
}

.tab-btn.active {
  background: #000;
  color: #fff;
  font-weight: bold;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #1e6de8;
}

/* .chart-layout {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
} */

.chart-wrapper {
  display: flex;
  height: 600px;
  position: relative;
  background: #000;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  width: 100%;
}

.stock-info-panel {
  flex :0 0 30%;
  width: 180px;
  padding: 5px;
  background: #1a1a1a;
  border-left: 1px solid #333;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #ccc;
  font-size: 14px;
  flex-shrink: 0;
}

.stock-info-item {
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid #333;
}

.price-labels, .change-labels, .volume-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 5px 5px;
  font-size: 12px;
  width: 50px;
  text-align: center;
  background: #000;
}

.price-labels {
  color: #ff0000;
  height: 85%;
  /* padding: 0; */
  overflow: hidden;
}

.change-labels {
  color: #ccc;
  height: 70%;
  overflow: hidden;
}

.volume-labels {
  color: #ccc;
  height: 35%;
  overflow: hidden;
  padding: 0;
}

.chart-main {
  flex: 1;
  position: relative;
  background: #000;
  padding: 0;
  margin: 0;
}

.chart-main > div {
  width: 100%;
  background: #000;
}

.main-chart {
  height: 70%;
  width: 100%;
  background: #000;
  border: 1px solid #ff0000;
  border-bottom: 1px solid #ff0000;
  padding: 0;
  margin: 0;
}

.volume-chart {
  height: 30%;
  background: #000;
  border: 1px solid #ff0000;
}

.crosshair-line {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.crosshair-horizontal {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.crosshair-vertical {
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
}

.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
  border: 1px solid #333;
}

.tooltip-line {
  margin: 2px 0;
  color: #ccc;
}

.tooltip-line strong {
  color: #fff;
}

.positive {
  color: #ff0000;
}

.zero-axis {
  color: #ffffff !important;
}

.negative {
  color: #00ff00;
}

@media (max-width: 768px) {
  .chart-wrapper {
    height: 500px;
  }
  
  .chart-tabs {
    flex-wrap: wrap;
    padding: 0 10px;
  }
  
  .tab-btn {
    padding: 10px 15px;
    font-size: 13px;
  }
}

.main-container {
    width:100%;
    display: flex;
    max-width: 1200px;
    margin: 0px;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.1);
    border-radius: 0px;
    overflow: hidden;
    background-color: white;
}

.info-section {
    display: flex;
    max-width: 100px;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 10%;
    padding: 0px;
    background-color: #f9fafc;
}